/**
 * 
 */
package smallChanges.statements;

import smallChanges.Tokenization.TokenSet;

/**
 * @author jspacco
 *
 */
public class MethodDeclarationStatement extends CompoundStatement
{
    public MethodDeclarationStatement(TokenSet tokenSet) {
        super(tokenSet);
    }

    public String getSignature()
    {
    	if (true)
    	    return getHeaderStmt().getImage();
        
        String retVal = null;
    	SingleStatement stmtHdr = getHeaderStmt();
		
		//if( stmtHdr.getClass() == smallChanges.statements.MethodSignature.class)
    	if (stmtHdr instanceof MethodSignature)
		{
			MethodSignature methodSigNode = (MethodSignature) stmtHdr;
			
			retVal =  methodSigNode.getSignature();
		}
		return retVal;
    }
    
//    public IAccessNode getMethodSignatureStatement()
//    {
//        IAccessNode retVal = null;
//        SingleStatement stmtHdr = getHeaderStmt();
//        
//        if( stmtHdr.getClass() == smallChanges.statements.MethodSignature.class)
//        {
//            retVal = (IAccessNode) stmtHdr;
//            
//        }
//        return retVal;
//        
//    }
}
